/**********************************************************************
  The MIT License (MIT)
  Copyright (c) 2012 sunriseyuen

  Permission is hereby granted, free of charge, to any person obtaining
  a copy of this software and associated documentation files
  (the "Software"), to deal in the Software without restriction,
  including without limitation the rights to use, copy, modify, merge,
  publish, distribute, sublicense, and/or sell copies of the Software,
  and to permit persons to whom the Software is furnished to do so,
  subject to the following conditions:

  The above copyright notice and this permission notice shall be included
  in all copies or substantial portions of the Software.

  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
  DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
  TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH
  THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 ***********************************************************************/

#define _DEF_CCY_CODE
#define _ZZDEBUG
#define _PROJ_DC

#region Using directives
using System;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;

using Muki.Framework.Util;
using Muki.Framework.Business;
using Muki.Framework;
using Muki.UserDefine;
using Muki.Entity;
using Dot.StreamObject;

#endregion

namespace Muki.UserPanel
{
	public class UID02212JE:EntityObject
	{
				private string _PN_NET_CODE="";
				private string _PN_NET_NAME01="";
				private string _PN_WCZ_CODE="";
				private string _PN_WCZ_CONTEXT="";
				private string _PN_DATA_CODE="";
				private string _PN_NET_CONTEXT="";
				private DateTime _PN_START_DATE=DateTime.MinValue;
				private DateTime _PN_FINAL_DATE=DateTime.MinValue;
				private string _PN_WCZ_STATUS="";

				[AttributeMapping(TableName="PNCZTBM",ColumnName="PN_NET_CODE")]
					public string PN_NET_CODE	{	get { return _PN_NET_CODE; }	set { _PN_NET_CODE = value; } }
				[AttributeMapping(TableName="VARIABLE",ColumnName="PN_NET_NAME01")]
					public string PN_NET_NAME01	{	get { return _PN_NET_NAME01; }	set { _PN_NET_NAME01 = value; } }
				[AttributeMapping(TableName="PNCZTBM",ColumnName="PN_WCZ_CODE")]
					public string PN_WCZ_CODE	{	get { return _PN_WCZ_CODE; }	set { _PN_WCZ_CODE = value; } }
				[AttributeMapping(TableName="PNCZTBM",ColumnName="PN_WCZ_CONTEXT")]
					public string PN_WCZ_CONTEXT	{	get { return _PN_WCZ_CONTEXT; }	set { _PN_WCZ_CONTEXT = value; } }
				[AttributeMapping(TableName="PNCZTBM",ColumnName="PN_DATA_CODE")]
					public string PN_DATA_CODE	{	get { return _PN_DATA_CODE; }	set { _PN_DATA_CODE = value; } }
				[AttributeMapping(TableName="PNCZTBM",ColumnName="PN_NET_CONTEXT")]
					public string PN_NET_CONTEXT	{	get { return _PN_NET_CONTEXT; }	set { _PN_NET_CONTEXT = value; } }
				[AttributeMapping(TableName="PNCZTBM",ColumnName="PN_START_DATE")]
					public DateTime PN_START_DATE	{	get { return _PN_START_DATE; }	set { _PN_START_DATE = value; } }
				[AttributeMapping(TableName="PNCZTBM",ColumnName="PN_FINAL_DATE")]
					public DateTime PN_FINAL_DATE	{	get { return _PN_FINAL_DATE; }	set { _PN_FINAL_DATE = value; } }
				[AttributeMapping(TableName="PNCZTBM",ColumnName="PN_WCZ_STATUS")]
					public string PN_WCZ_STATUS	{	get { return _PN_WCZ_STATUS; }	set { _PN_WCZ_STATUS = value; } }

		public List<LogisticException> Exceptions=new List<LogisticException>();

		private string _DATA_ATVT_CODE   = "";
		private string _DATA_STATUS_CODE = "Unproven";
		private string _NAVI_STATUS_CODE = "N";
		private string _ATVT_CODE        = "";
		private string _P_DATA           = "";
		private Wxf    _Wxf              = new Wxf();

		public  string DATA_STATUS_CODE { get { return _DATA_STATUS_CODE; } set { _DATA_STATUS_CODE = value; }  }
		public  string NAVI_STATUS_CODE { get { return _NAVI_STATUS_CODE; } set { _NAVI_STATUS_CODE = value; }  }
		public  string DATA_ATVT_CODE   { get { return _DATA_ATVT_CODE;   } set { _DATA_ATVT_CODE   = value; }  }
		public  string ATVT_CODE        { get { return _ATVT_CODE;        } set { _ATVT_CODE        = value; }  }
		public  string P_DATA           { get { return _P_DATA;           } set { _P_DATA = value;           }  }
		public  Wxf    Wxf              { get { return _Wxf;              } set { _Wxf = value;              }  }

		public string  PK_DATA
		{
			get
			{
				return ZZGeneral.Base64Encoder("PN_WCZ_CODE="+this.PN_WCZ_CODE); 
			}
		}

		private string _USECURITY_CODE1 = "";
		private string _USECURITY_CODE2 = "";
		private string _USECURITY_CODE3 = "";
		private string _USECURITY_CODE4 = "";
		private string _USECURITY_CODE5 = "";
		private string _USECURITY_CODE6 = "";
		private int    _USECURITY_RIGHT = 50;
		private string _UZADD_DATE      = "";
		private string _UZADD_USER      = "";
		private string _UZCHG_DATE      = "";
		private string _UZCHG_USER      = "";

		public string USECURITY_CODE1 { get { return _USECURITY_CODE1; } set { _USECURITY_CODE1 = value; }  }
		public string USECURITY_CODE2 { get { return _USECURITY_CODE2; } set { _USECURITY_CODE2 = value; }  }
		public string USECURITY_CODE3 { get { return _USECURITY_CODE3; } set { _USECURITY_CODE3 = value; }  }
		public string USECURITY_CODE4 { get { return _USECURITY_CODE4; } set { _USECURITY_CODE4 = value; }  }
		public string USECURITY_CODE5 { get { return _USECURITY_CODE5; } set { _USECURITY_CODE5 = value; }  }
		public string USECURITY_CODE6 { get { return _USECURITY_CODE6; } set { _USECURITY_CODE6 = value; }  }
		public int    USECURITY_RIGHT { get { return _USECURITY_RIGHT; } set { _USECURITY_RIGHT = value; }  }
		public string UZADD_DATE      { get { return _UZADD_DATE;      } set { _UZADD_DATE      = value; }  }
		public string UZADD_USER      { get { return _UZADD_USER;      } set { _UZADD_USER      = value; }  }
		public string UZCHG_DATE      { get { return _UZCHG_DATE;      } set { _UZCHG_DATE      = value; }  }
		public string UZCHG_USER      { get { return _UZCHG_USER;      } set { _UZCHG_USER      = value; }  }

	}
}
